package org.sc.learn.server.auth.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author qianwx
 */
@Entity
@Table(name="t_auth_authority")
@EqualsAndHashCode
@Data
public class Authority extends AbstractAuditingEntity{
  private static final long serialVersionUID = 7990453198175832366L;

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private long id;

  private String name;

  private String value;
}
